<?php


namespace Modules\Api\Http\Controllers;

use Illuminate\Routing\Controller;
use App\Pool\Redis;
use Swoole\Coroutine;
use Swoole\Coroutine\Channel;

class UserController extends Controller
{

    public function index()
    {
        var_dump(1);
    }

    public function testMySQLPool()
    {
        go(function () {
            Redis::incr('swoole');
        });
    }

}